<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<input type="text" name="ipt" id="ipt" value="" />
		<input type="button" name="" id="" value="查询" />
		<script type="text/javascript">
			var btn = document.getElementById('ipt');
			btn.onchange = function(){
			  var sct=document.createElement('script');
			  sct.src = "https://sclub.jd.com/comment/productPageComments.action?callback=search&productId=+this.value+&score=0&sortType=5&page=0&pageSize=10&isShadowSku=0&fold=1";
			  document.appendChild(sct);
			}
			function search(e){
				console.log(e)
				
			}
			
		</script>
		<script type="text/javascript" src="https://sclub.jd.com/comment/productPageComments.action?callback=search&productId=32944428945&score=0&sortType=5&page=0&pageSize=10&isShadowSku=0&fold=1">
		</script>
	</body>
</html>
